﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RentalCalcV3
{
    /// <summary>
    /// The movie class
    /// </summary>
    public class Movie
    {
        public const int CHILDREN = 0;
        public const int EMOTION = 1;
        public const int WAR = 2;

        /// <summary>
        /// Movie's title
        /// </summary>
        private string _title;

        /// <summary>
        /// Movie's priceCode, represent movie's type
        /// </summary>
        private int _priceCode;


        public Movie()
        {
        }

        /// <summary>
        /// Create a new instance of the class 'Movie'
        /// </summary>
        /// <param name="title">Movie's title</param>
        /// <param name="priceCoode">Movie's PriceCode, can be 0,1,2</param>
        public Movie(string title, int priceCoode)
        {
            _title = title;
            _priceCode = priceCoode;
        }

        /// <summary>
        /// Gets or sets Pricecode
        /// </summary>
        public int PriceCode
        {
            get
            {
                return _priceCode;
            }

            set
            {
                _priceCode = value;
            }
        }

        /// <summary>
        /// Gets or sets movie's title
        /// </summary>
        public string Title
        {
            get
            {
                return _title;
            }

            set
            {
                _title = value;
            }
        }

    }
}
